package com.wn.ticket.mapper;

import com.wn.ticket.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author wuqingting
 * @date 2022/8/29
 */
@Repository
public interface UserPerformMapper {

    /**
     * 收藏表增加
     * @param userId
     * @param performId
     */
    void userPerformInsert(@Param("userId")int userId, @Param("performId")int performId);

    /**
     * 收藏表 物理删除
     * @param userId
     * @param performId
     */
    void userPerformDeleted(@Param("userId")int userId,@Param("performId")int performId);

    /**
     * 根据用户id查询收藏的演出
     * @param userId
     * @return
     */
    User getByUserId(int userId);
}
